#encoding: utf-8 
"""
“回文”是指正读反读都能读通的句子


"""


def is_palindrome(num):
    temp = num
    total = 0
    while temp > 0:
        total = total * 10 + temp % 10
        temp //= 10
        print('temp == %d total = %d' % (temp,total))
    return total == num


# 判断一个数是不是素数的函数。
def is_prime(num):
    for factor in range(2, num):
        if num % factor == 0:
            return False
    return True if num != 1 else False



if __name__ == '__main__':
	num = int(input('请输入正整数：'))
	if is_prime(num) and is_palindrome(num):
		print('是回文素数 %d' % num)
	print('no no no')

# ----

# def main():
#     # Todo: Add your code here
#     pass


# if __name__ == '__main__':
#     main()
